package com.example.demo.controller;

import com.example.demo.entity.Course;
import com.example.demo.entity.Source;
import com.example.demo.mapper.FlunkMapper;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/getFlunk")
@CrossOrigin
public class FlunkController {

    @Resource
    FlunkMapper flunkMapper;

    @GetMapping("/getDashujuFlunk")
    public List<Source> getDashujuFlunk() {
        List<Source> sourceList = flunkMapper.getDashujuFlunk();
        return sourceList;
    }

    @GetMapping("/getJisuanjiyingyongFlunk")
    public List<Source> getJisuanjiyingyongFlunk() {
        List<Source> sourceList = flunkMapper.getJisuanjiyingyongFlunk();
        return sourceList;
    }

    @GetMapping("/getRuanjiangongchengFlunk")
    public List<Source> getRuanjiangongchengFlunk() {
        List<Source> sourceList = flunkMapper.getRuanjiangongchengFlunk();
        return sourceList;
    }

    @GetMapping("/getRuanjianjishuFlunk")
    public List<Source> getRuanjianjishuFlunk() {
        List<Source> sourceList = flunkMapper.getRuanjianjishuFlunk();
        return sourceList;
    }
    @GetMapping("/getWangluogongchengFlunk")
    public List<Source> getWangluogongchengFlunk() {
        List<Source> sourceList = flunkMapper.getWangluogongchengFlunk();
        return sourceList;
    }

    @GetMapping("/getWangluojishuFlunk")
    public List<Source> getWangluojishuFlunk() {
        List<Source> sourceList = flunkMapper.getWangluojishuFlunk();
        return sourceList;
    }

    @GetMapping("/getWulianwangFlunk")
    public List<Source> getWulianwangFlunk() {
        List<Source> sourceList = flunkMapper.getWulianwangFlunk();
        return sourceList;
    }

    @GetMapping("/getXinxiguanliFlunk")
    public List<Source> getXinxiguanliFlunk() {
        List<Source> sourceList = flunkMapper.getXinxiguanliFlunk();
        return sourceList;
    }
}
